﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using InSafetyAirClient.InSafetyAirService;
using System.Diagnostics;

namespace InSafetyAirClient
{
    class ServiceSingle
    {
        private static ServiceSingle instance = null;
        private ServiceClient serv = null;

        private ServiceSingle() 
        {
        }
        public ServiceClient getService()
        {
            if (serv == null) serv = new ServiceClient();
            return serv;
        }
        public static ServiceSingle Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new ServiceSingle();
                }
                return instance;
            }
        }
    }
}
